package com.chinasoftinc.facommon.control.conversation;

/**
 * 连接状态码
 *
 * @since 2022-05-05
 */
public enum BleConnectState {
    CONNECT_FAILED(-1, "设备连接失败"),
    UN_CONNECT(0, "连接断开"),
    CONNECTING(1, "连接中"),
    CONNECTED(2, "已连接");
    private final int code;
    private final String msg;

    BleConnectState(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
